home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2281 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  2.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text, with overstriking default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 61 6c | 74 2e 6d 73 64 6f 73 2e |oups: al|t.msdos.|
|00000070| 70 72 6f 67 72 61 6d 6d | 65 72 2c 63 6f 6d 70 2e |programm|er,comp.|
|00000080| 6c 61 6e 67 2e 63 0a 53 | 75 62 6a 65 63 74 3a 20 |lang.c.S|ubject: |
|00000090| 52 65 3a 20 50 61 73 63 | 61 6c 20 70 72 6f 67 72 |Re: Pasc|al progr|
|000000a0| 61 6d 20 77 6f 72 6b 73 | 20 62 75 74 20 6e 6f 74 |am works| but not|
|000000b0| 20 43 20 70 72 6f 67 72 | 61 6d 21 0a 44 61 74 65 | C progr|am!.Date|
|000000c0| 3a 20 46 72 69 2c 20 31 | 39 20 4a 61 6e 20 31 39 |: Fri, 1|9 Jan 19|
|000000d0| 39 36 20 31 39 3a 35 36 | 3a 30 38 20 2d 30 36 30 |96 19:56|:08 -060|
|000000e0| 30 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 3a 20 |0.Organi|zation: |
|000000f0| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 49 6f |Universi|ty of Io|
|00000100| 77 61 2c 20 49 6f 77 61 | 20 43 69 74 79 2c 20 49 |wa, Iowa| City, I|
|00000110| 41 2c 20 55 53 41 0a 44 | 69 73 74 72 69 62 75 74 |A, USA.D|istribut|
|00000120| 69 6f 6e 3a 20 77 6f 72 | 6c 64 0a 4d 65 73 73 61 |ion: wor|ld.Messa|
|00000130| 67 65 2d 49 44 3a 20 3c | 50 69 6e 65 2e 41 33 32 |ge-ID: <|Pine.A32|
|00000140| 2e 33 2e 39 31 2e 39 36 | 30 31 31 39 31 39 34 35 |.3.91.96|01191945|
|00000150| 32 30 2e 31 34 37 35 35 | 31 41 2d 31 30 30 30 30 |20.14755|1A-10000|
|00000160| 30 40 72 65 64 2e 77 65 | 65 67 2e 75 69 6f 77 61 |0@red.we|eg.uiowa|
|00000170| 2e 65 64 75 3e 0a 52 65 | 66 65 72 65 6e 63 65 73 |.edu>.Re|ferences|
|00000180| 3a 20 3c 34 63 64 70 72 | 32 24 70 73 69 40 6c 75 |: <4cdpr|2$psi@lu|
|00000190| 67 62 2e 6c 61 74 72 6f | 62 65 2e 65 64 75 2e 61 |gb.latro|be.edu.a|
|000001a0| 75 3e 20 20 3c 50 69 6e | 65 2e 53 56 34 2e 33 2e |u> <Pin|e.SV4.3.|
|000001b0| 39 31 2d 68 65 62 2d 32 | 2e 30 34 2e 39 36 30 31 |91-heb-2|.04.9601|
|000001c0| 30 34 31 31 34 39 33 30 | 2e 31 36 32 39 32 41 2d |04114930|.16292A-|
|000001d0| 31 30 30 30 30 30 40 63 | 73 2e 74 65 63 68 6e 69 |100000@c|s.techni|
|000001e0| 6f 6e 2e 61 63 2e 69 6c | 3e 20 3c 34 64 6d 70 76 |on.ac.il|> <4dmpv|
|000001f0| 30 24 74 37 37 40 66 61 | 6e 67 7a 2e 63 6f 6d 3e |0$t77@fa|ngz.com>|
|00000200| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000210| 73 74 3a 20 72 65 64 2e | 77 65 65 67 2e 75 69 6f |st: red.|weeg.uio|
|00000220| 77 61 2e 65 64 75 0a 4d | 69 6d 65 2d 56 65 72 73 |wa.edu.M|ime-Vers|
|00000230| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|00000240| 2d 54 79 70 65 3a 20 54 | 45 58 54 2f 50 4c 41 49 |-Type: T|EXT/PLAI|
|00000250| 4e 3b 20 63 68 61 72 73 | 65 74 3d 55 53 2d 41 53 |N; chars|et=US-AS|
|00000260| 43 49 49 0a 58 2d 53 65 | 6e 64 65 72 3a 20 72 6f |CII.X-Se|nder: ro|
|00000270| 62 69 6e 73 6f 6e 40 72 | 65 64 2e 77 65 65 67 2e |binson@r|ed.weeg.|
|00000280| 75 69 6f 77 61 2e 65 64 | 75 0a 49 6e 2d 52 65 70 |uiowa.ed|u.In-Rep|
|00000290| 6c 79 2d 54 6f 3a 20 3c | 34 64 6d 70 76 30 24 74 |ly-To: <|4dmpv0$t|
|000002a0| 37 37 40 66 61 6e 67 7a | 2e 63 6f 6d 3e 20 0a 0a |77@fangz|.com> ..|
|000002b0| 4f 6e 20 31 38 20 4a 61 | 6e 20 31 39 39 36 2c 20 |On 18 Ja|n 1996, |
|000002c0| 53 68 61 64 6f 77 2e 4b | 69 6e 67 08 08 20 77 72 |Shadow.K|ing.. wr|
|000002d0| 6f 74 65 3a 0a 0a 3e 20 | 3a 20 3e 20 76 6f 69 64 |ote:..> |: > void|
|000002e0| 20 6d 61 69 6e 28 69 6e | 74 20 61 72 67 63 2c 63 | main(in|t argc,c|
|000002f0| 68 61 72 20 2a 61 72 67 | 76 5b 5d 29 0a 3e 20 3a |har *arg|v[]).> :|
|00000300| 20 20 20 20 5e 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | ^---|--------|
|00000310| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000320| 2d 2d 54 68 69 73 20 6f | 6e 65 20 74 6f 6f 2c 20 |--This o|ne too, |
|00000330| 62 75 74 20 6e 6f 74 20 | 74 6f 6f 20 73 65 72 69 |but not |too seri|
|00000340| 6f 75 73 0a 0a 3e 20 54 | 68 69 73 20 69 73 6e 27 |ous..> T|his isn'|
|00000350| 74 20 72 65 61 6c 6c 79 | 20 61 20 70 72 6f 62 6c |t really| a probl|
|00000360| 65 6d 2c 20 69 74 27 73 | 20 75 73 75 61 6c 6c 79 |em, it's| usually|
|00000370| 20 6a 75 73 74 20 74 68 | 65 20 65 72 72 6f 72 20 | just th|e error |
|00000380| 63 6f 64 65 20 74 68 61 | 74 20 74 68 65 20 0a 3e |code tha|t the .>|
|00000390| 20 70 72 6f 67 72 61 6d | 20 72 65 74 75 72 6e 73 | program| returns|
|000003a0| 20 74 6f 20 64 6f 73 20 | 77 68 65 6e 20 69 74 20 | to dos |when it |
|000003b0| 65 78 69 74 73 2e 0a 20 | 20 20 20 20 20 20 20 20 |exits.. | |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 5e 5e 5e 0a | | ^^^.|
|000003d0| 20 20 4d 6f 73 74 20 28 | 61 6c 6c 3f 29 20 69 6d | Most (|all?) im|
|000003e0| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 73 20 6f 66 |plementa|tions of|
|000003f0| 20 4d 53 2d 44 4f 53 20 | 69 67 6e 6f 72 65 20 74 | MS-DOS |ignore t|
|00000400| 68 65 20 72 65 74 75 72 | 6e 20 63 6f 64 65 73 20 |he retur|n codes |
|00000410| 66 72 6f 6d 20 0a 70 72 | 6f 67 72 61 6d 73 2c 20 |from .pr|ograms, |
|00000420| 62 75 74 20 74 68 65 6e | 20 4d 53 2d 44 4f 53 20 |but then| MS-DOS |
|00000430| 70 75 74 73 20 61 20 67 | 72 65 61 74 20 64 65 61 |puts a g|reat dea|
|00000440| 6c 20 6f 66 20 74 72 75 | 73 74 20 69 6e 20 74 68 |l of tru|st in th|
|00000450| 65 20 70 72 6f 67 72 61 | 6d 6d 65 72 20 0a 6e 6f |e progra|mmer .no|
|00000460| 74 20 74 6f 20 62 6c 6f | 77 20 74 68 65 20 6d 61 |t to blo|w the ma|
|00000470| 63 68 69 6e 65 20 75 70 | 2e 20 20 42 79 20 63 6f |chine up|. By co|
|00000480| 6e 74 72 61 73 74 20 44 | 45 43 20 43 20 66 6f 72 |ntrast D|EC C for|
|00000490| 20 56 4d 53 2c 20 77 68 | 69 63 68 20 6d 61 6e 61 | VMS, wh|ich mana|
|000004a0| 67 65 73 20 6d 65 6d 6f | 72 79 20 0a 76 65 72 79 |ges memo|ry .very|
|000004b0| 20 6d 65 74 69 63 75 6c | 6f 75 73 6c 79 2c 20 72 | meticul|ously, r|
|000004c0| 65 66 75 73 65 73 20 74 | 6f 20 63 6f 6d 70 69 6c |efuses t|o compil|
|000004d0| 65 20 76 6f 69 64 20 6d | 61 69 6e 28 29 20 65 76 |e void m|ain() ev|
|000004e0| 65 6e 20 77 69 74 68 6f | 75 74 20 73 74 72 69 63 |en witho|ut stric|
|000004f0| 74 20 0a 41 4e 53 49 20 | 63 6f 6d 70 6c 69 61 6e |t .ANSI |complian|
|00000500| 63 65 20 73 65 74 20 2d | 2d 20 56 4d 53 20 5f 61 |ce set -|- VMS _a|
|00000510| 6c 77 61 79 73 5f 20 77 | 61 6e 74 73 20 74 6f 20 |lways_ w|ants to |
|00000520| 6b 6e 6f 77 20 77 68 65 | 74 68 65 72 20 74 68 65 |know whe|ther the|
|00000530| 20 70 72 6f 67 72 61 6d | 20 0a 63 6f 6d 70 6c 65 | program| .comple|
|00000540| 74 65 64 20 77 69 74 68 | 6f 75 74 20 64 69 66 66 |ted with|out diff|
|00000550| 69 63 75 6c 74 79 20 61 | 6e 64 20 74 68 61 74 27 |iculty a|nd that'|
|00000560| 73 20 61 6c 6c 20 74 68 | 65 72 65 20 69 73 20 74 |s all th|ere is t|
|00000570| 6f 20 69 74 2e 20 20 56 | 4d 53 20 74 65 6e 64 73 |o it. V|MS tends|
|00000580| 20 74 6f 20 0a 72 75 6e | 20 6f 6e 20 6d 75 6c 74 | to .run| on mult|
|00000590| 69 2d 75 73 65 72 20 6d | 61 63 68 69 6e 65 73 20 |i-user m|achines |
|000005a0| 77 68 65 72 65 20 65 72 | 72 6f 72 20 72 65 63 6f |where er|ror reco|
|000005b0| 76 65 72 79 20 28 6f 72 | 20 68 61 72 64 20 63 72 |very (or| hard cr|
|000005c0| 61 73 68 65 73 29 20 63 | 6f 75 6c 64 20 62 65 20 |ashes) c|ould be |
|000005d0| 0a 72 61 74 68 65 72 20 | 63 6f 73 74 6c 79 2e 0a |.rather |costly..|
|000005e0| 0a 3e 20 41 73 20 66 61 | 72 20 61 73 20 49 20 6b |.> As fa|r as I k|
|000005f0| 6e 6f 77 20 69 74 20 64 | 6f 65 73 6e 27 74 20 48 |now it d|oesn't H|
|00000600| 41 56 45 20 74 6f 20 0a | 3e 20 64 6f 20 74 68 69 |AVE to .|> do thi|
|00000610| 73 20 73 6f 20 6a 75 73 | 74 20 76 6f 69 64 20 6d |s so jus|t void m|
|00000620| 61 69 6e 20 73 68 6f 75 | 6c 64 20 62 65 20 66 69 |ain shou|ld be fi|
|00000630| 6e 65 2c 20 49 20 75 73 | 75 61 6c 6c 79 20 64 6f |ne, I us|ually do|
|00000640| 20 74 68 65 20 73 61 65 | 6d 20 74 68 69 6e 67 20 | the sae|m thing |
|00000650| 0a 3e 20 77 69 74 68 20 | 73 69 6d 70 6c 65 20 70 |.> with |simple p|
|00000660| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 20 64 6f 6e |rograms |that don|
|00000670| 27 74 20 6e 65 65 64 20 | 74 6f 20 73 65 74 20 74 |'t need |to set t|
|00000680| 68 65 20 65 72 72 6f 72 | 20 6c 65 76 65 6c 20 6f |he error| level o|
|00000690| 6e 20 65 78 69 74 20 61 | 6e 64 20 0a 3e 20 49 27 |n exit a|nd .> I'|
|000006a0| 76 65 20 68 61 64 20 6e | 6f 20 70 72 6f 62 6c 65 |ve had n|o proble|
|000006b0| 6d 73 20 77 68 61 74 73 | 6f 65 76 65 72 20 77 69 |ms whats|oever wi|
|000006c0| 74 68 20 69 74 2e 20 49 | 74 20 69 73 20 69 66 20 |th it. I|t is if |
|000006d0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 69 73 20 73 |the prog|ram is s|
|000006e0| 75 70 70 6f 73 65 64 20 | 0a 3e 20 74 6f 20 72 65 |upposed |.> to re|
|000006f0| 74 75 72 6e 20 61 6e 20 | 65 72 72 6f 72 20 6c 65 |turn an |error le|
|00000700| 76 65 6c 20 74 68 6f 75 | 67 68 2e 0a 0a 20 20 49 |vel thou|gh... I|
|00000710| 6e 20 61 64 64 69 74 69 | 6f 6e 20 74 6f 20 74 68 |n additi|on to th|
|00000720| 65 20 70 72 61 63 74 69 | 63 61 6c 20 70 72 6f 62 |e practi|cal prob|
|00000730| 6c 65 6d 73 20 6f 66 20 | 6e 6f 74 20 72 65 74 75 |lems of |not retu|
|00000740| 72 6e 69 6e 67 20 65 72 | 72 6f 72 20 63 6f 64 65 |rning er|ror code|
|00000750| 73 2c 20 74 68 65 20 0a | 41 4e 53 49 20 43 20 63 |s, the .|ANSI C c|
|00000760| 6f 64 65 20 64 65 66 69 | 6e 65 73 20 6d 61 69 6e |ode defi|nes main|
|00000770| 20 74 6f 20 72 65 74 75 | 72 6e 20 69 6e 74 2e 20 | to retu|rn int. |
|00000780| 20 41 6e 79 20 43 20 70 | 72 6f 67 72 61 6d 20 74 | Any C p|rogram t|
|00000790| 68 61 74 20 64 6f 65 73 | 6e 27 74 20 65 78 68 69 |hat does|n't exhi|
|000007a0| 62 69 74 73 20 0a 75 6e | 64 65 66 69 6e 65 64 20 |bits .un|defined |
|000007b0| 62 65 68 61 76 69 6f 72 | 20 66 72 6f 6d 20 74 68 |behavior| from th|
|000007c0| 65 20 64 65 63 6c 61 72 | 61 74 69 6f 6e 20 6f 66 |e declar|ation of|
|000007d0| 20 6d 61 69 6e 28 29 20 | 61 6c 6c 20 74 68 65 20 | main() |all the |
|000007e0| 77 61 79 20 74 6f 20 74 | 68 65 20 65 6e 64 2c 20 |way to t|he end, |
|000007f0| 0a 61 73 20 66 61 72 20 | 61 73 20 74 68 65 20 43 |.as far |as the C|
|00000800| 20 6c 61 6e 67 75 61 67 | 65 20 69 73 20 63 6f 6e | languag|e is con|
|00000810| 63 65 72 6e 65 64 2e 0a | 0a 2f 2a 2a 4a 61 6d 65 |cerned..|./**Jame|
|00000820| 73 20 52 6f 62 69 6e 73 | 6f 6e 2a 2a 2a 2a 2a 2a |s Robins|on******|
|00000830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000840| 2a 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 20 20 |* | . |
|00000850| 22 49 66 20 61 20 66 61 | 74 61 6c 20 65 72 72 6f |"If a fa|tal erro|
|00000860| 72 20 6f 63 63 75 72 73 | 2c 20 74 68 65 20 70 72 |r occurs|, the pr|
|00000870| 6f 67 72 61 6d 20 73 68 | 6f 75 6c 64 20 6e 6f 74 |ogram sh|ould not|
|00000880| 20 62 65 20 61 6c 6c 6f | 77 65 64 20 74 6f 20 63 | be allo|wed to c|
|00000890| 6f 6e 74 69 6e 75 65 2e | 22 0a 20 2d 2d 20 4f 72 |ontinue.|". -- Or|
|000008a0| 61 63 6c 65 20 50 72 6f | 2a 43 20 55 73 65 72 27 |acle Pro|*C User'|
|000008b0| 73 20 47 75 69 64 65 20 | 20 20 20 20 20 20 20 20 |s Guide | |
|000008c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 6a 61 6d |********|*****jam|
|000008d0| 65 73 2d 72 6f 62 69 6e | 73 6f 6e 40 75 69 6f 77 |es-robin|son@uiow|
|000008e0| 61 2e 65 64 75 2a 2a 2f | 0a |a.edu**/|. |
+--------+-------------------------+-------------------------+--------+--------+